<?php 
if($sliders){ 
    $n=0;
?>
<div class="container">
    <div class="row">
        <div 
            id="carousel-banner-home" 
            class="carousel slide carousel-fade" data-ride="carousel"
            data-interval="3000" data-pause="false"
            >
            <div class="carousel-inner">
                <?php foreach ($sliders as $tmp){ ?>
                <div class="item <?php echo $n++==0?'active':'' ?>">
                    <img style="width:100%" src="<?php echo quotes_to_entities($tmp->data_source) ?>"/>
                </div>
                <?php } ?>
            </div>
        </div>

    </div>
</div>
<?php } ?>